package com.zzl.bonds.ticket.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zzl.bonds.ticket.dto.StatisticsDataDto;
import com.zzl.bonds.ticket.dto.TicketTransferPage;
import com.zzl.bonds.ticket.entity.TicketransferEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 转让申请单
 * 
 * @author sunpp
 * @email 1171813232@qq.com
 * @date 2022-02-16 11:14:07
 */
@Mapper
@SuppressWarnings("javadoc")
public interface TicketransferDao extends BaseMapper<TicketransferEntity> {

    /**
    * 查询包含逻辑删除的数据集合
    * @param ticketransferEntity 转让申请单对象
    * @return 包含逻辑删除的数据集合
    */
    List<TicketransferEntity> listIncludeDel(TicketransferEntity ticketransferEntity);

    IPage<TicketTransferPage> queryPage(@Param("page") IPage<TicketTransferPage> page,@Param("params") Map<String, Object> params);

    StatisticsDataDto getTransferData(@Param("enterpriseId") String enterpriseId);

    StatisticsDataDto getTransferSignData(String enterpriseId);
}
